class Response {
  static success(data = null, message = '操作成功') {
    return {
      code: 200,
      message,
      data,
      success: true,
      timestamp: new Date().toISOString()
    };
  }

  static error(message = '操作失败', code = 500, data = null) {
    return {
      code,
      message,
      data,
      success: false,
      timestamp: new Date().toISOString()
    };
  }
}

module.exports = Response;